package com.kiko.education.service.impl;

import com.kiko.education.mapper.ScoreMapper;
import com.kiko.education.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreServiceImpl implements ScoreService {
    @Autowired
    private ScoreMapper scoreMapper;
    @Override
    public List getCourseByTID(String tid){
        return scoreMapper.getCourseByTID(tid);
    }
    @Override
    public List getCourseBySID(String sid){
        return scoreMapper.getCourseBySID(sid);
    }
    @Override
    public void setCourse(int id,String tid,String sid){
        scoreMapper.setCourse(id, tid, sid);
    }
}
